import request from '@/utils/request'
import { get } from 'sortablejs'

export function getList(id) {
    return request({
        url: '/ifmPost/ifmPost/ifmPostAndUserid',
        method: 'post',
        data: {
            postId:id
        }
    })
}

export function getIfmPost() {
    return request({
        url: '/morescreeningdate/morescreeningdate/ifmPost',
        method: 'get',
    })
}

export function getIfmPostAndKe(id) {
    return request({
        url: '/ifmPost/ifmPost/ifmPostAndKe',
        method: 'post',
        data: {
            postId:id
        }
    })
}

// 获取科目
export function getFrees() {
    return request({
        url: '/ifmPost/ifmPost/free',
        method: 'get',
    })
}

// 新增类目-科目
export function addIfmPost(data) {
    return request({
        url: '/ifmPost/ifmPost/addIfmPost',
        method: 'post',
        data: data
    })
}

// 修改类目-科目
export function updateIfmPost(data) {
    return request({
        url: '/ifmPost/ifmPost/updateIfmPost',
        method: 'post',
        data: data
    })
}

// 删除
export function delFree(id) {
    return request({
        url: '/ifmPost/ifmPost/deleteIfmPost',
        method: 'post',
        data: {
            id:id
        }
    })
}










